package com.hqyj.controller;


import com.hqyj.pojo.Admin;
import com.hqyj.pojo.User;
import com.hqyj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author rock
 * @since 2021-10-21
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;

    //访问login页面
    @RequestMapping("/loginPage")
    public String loginPage(){
        return "login";
    }
    @RequestMapping("/login1Page")
    public String login1Page() {
        return "login1";
    }

    //访问index页面
    @RequestMapping("/indexPage")
    public String indexPage(){
        return "index";
    }

    //访问tablePage页面
    @RequestMapping("/tablePage")
    public String tablePage(){
        return "table";
    }


}

